import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MapSMaxProcessHelper } from "./MapSMaxProcessHelper";
import { SPublicMiniPlayer } from "./SPublicMiniPlayer";
type int = number;
//class SWaitingPlayer
    
    export  class SWaitingPlayer extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SWaitingPlayer();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.miniPlayer.__write(arg1);
            MapSMaxProcessHelper.write(arg1, this.maxProcessMap);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.miniPlayer = new SPublicMiniPlayer();
            this.miniPlayer.__read(arg1);
            this.maxProcessMap = MapSMaxProcessHelper.read(arg1);
            return;
        }

        public /* const */_type: int=37;

        public /* var */miniPlayer: SPublicMiniPlayer;

        public /* var */maxProcessMap: Map<any, any> /* flash.utils.Dictionary */;

        public static /* var */_regist: SWaitingPlayer;
    }

            SWaitingPlayer._regist = new SWaitingPlayer(true);
        